import request from '../request'
const Api = {
    professorpage: '/api/adminprofessor/professor/page',
	professorSave:'/api/adminprofessor/professor/save',
	remove:'/api/adminprofessor/professor/remove',
	selectById:'/api/adminprofessor/professor/selectById',
	update:'/api/adminprofessor/professor/update',

  imports: '/api/admincollege/down/template/professorImport',
  template: '/api/admincollege/down/template/professorInfo',
}

/**教授列表*/
export const professorpage = data => {
    return request.request({
        url: Api.professorpage,
        params: data,
        method: 'GET'
    })
}
// 单个删除
export const remove = params => {
  return request.request({
    url: Api.remove,
    params,
    method: 'DELETE'
  })
}
/**教授新增*/
export const professorSave = data => {
    return request.request({
        url: Api.professorSave,
        data,
        method: 'POST'
    })
}
/**教授详情*/
export const selectById = data => {
    return request.request({
        url: Api.selectById,
        params: data,
        method: 'GET'
    })
}
export const update = data => {
  return request.request({
    url: Api.update,
    data,
    method: 'PUT'
  })
}

/** 文件导入 */
export const imports = data => {
  return request.request({
    url: Api.imports,
    data,
    method: 'post'
  })
}
export const templateUrl = Api.template
/**教授列表*/
export const page = data => {
  return request.request({
      url: Api.professorpage,
      params: data,
      method: 'GET'
  })
}
